<?php

$bid = $bet -> get_bids(array('table' => 'bids', 'fields' => array('product_id', 'SUM(value) as value', 'timestamp'), 'group' => 'product_id', 'order' => 'timestamp desc', 'limit' => 20, 'log' => true));
echo '<strong>Bids placed</strong>';
echo '<p>';
while ($row = $bid -> fetch_object()) {
	echo 'Product: ' . $row -> product_id . ' with amount: ' . $row -> value . '<br>';
}
echo '</p>';

?>